import request from '@/utils/request'


// 全查师傅

export function loadWorker(query) {
  return request({
    url: '/admin/worker/getAllWorkers',
    method: 'get',
    params: query
  })
}
//全查拉黑师傅
export function loadBlockWorker(query) {
  return request({
    url: '/admin/worker/getBlockWorker',
    method: 'get',
    params: query
  })
}
//拉黑师傅
export function blockWorker(id) {
  return request({
    url: '/admin/worker/blockWorker/' + id,
    method: 'post',
  })
}

// 取消拉黑
export function cancelBlockWorker(id) {
  return request({
    url: '/admin/worker/cancelBlockWorker/' + id,
    method: 'post',
  })
}